package defaultpkg;
import com.razorthink.runtime.*;
public class TestFacade  {

	public static String BASEURL="";

	public static com.razorthink.runtime.query.Result QueryService_runQuery(com.razorthink.runtime.query.Query query) throws Exception{
		String url = BASEURL+ "sqlquery" ;
		return (com.razorthink.runtime.query.Result) WebServiceTester.test(url, query, com.razorthink.runtime.query.Result.class, "POST");
	}

	public static com.rest.core.TransactionMessage LoginService_doLogin(com.rest.core.Credentials credentials) throws Exception{
		String url = BASEURL + "auth" + "/" + "login" ;
		return (com.rest.core.TransactionMessage) WebServiceTester.test(url, credentials, com.rest.core.TransactionMessage.class, "POST");
	}

	public static com.rest.core.TransactionMessage LoginService_doLogout() throws Exception{
		String url = BASEURL + "auth" + "/" + "logout" ;
		return (com.rest.core.TransactionMessage) WebServiceTester.test(url, null, com.rest.core.TransactionMessage.class, "GET");
	}

	public static com.rest.core.TransactionMessage LoginService_checkLoginStatus() throws Exception{
		String url = BASEURL + "auth" + "/" + "checkloginstatus" ;
		return (com.rest.core.TransactionMessage) WebServiceTester.test(url, null, com.rest.core.TransactionMessage.class, "GET");
	}
}
